package org.example.controller;

import org.example.common.RestMap;
import org.example.common.RestMapUtils;
import org.example.entity.AuthUserEntity;
import org.example.service.IAuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth/user")
public class AuthUserController {

    @Autowired
    private IAuthUserService service;
    @PostMapping("/selectAll")
    public RestMap selectAll(@RequestBody AuthUserEntity entity){
        return RestMapUtils.success(service.selectAll(entity));
    }
}
